<?
$dev_date = "";
if (ENVIRONMENT == 'development'){
    $dev_date = "?".date("c");
}
?>
<!DOCTYPE html>
<html>
<head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <meta http-equiv="X-UA-Compatible" content="chrome=1">
        <title><?=$title?></title>
        
        <link rel="icon" type="image/png" href="<?=base_url()."img/icon.png$dev_date"?>"/>
        
        <script src="<?=base_url()."js/jquery-1.7.2.min.js" ?>"></script>
        <script src="<?=base_url()."js/include.js$dev_date" ?>"></script>
        <link rel="stylesheet" href="<?=base_url()."css/style.css$dev_date" ?>"/>
        <link rel="stylesheet" href="<?=base_url()."css/lists.css$dev_date" ?>"/>
        
       <!-- <script src="<?=base_url()."js/jquery-ui-1.8.23.custom.min.js" ?>"></script> -->
        <script src="<?=base_url()."js/jquery-ui-1.9.0.custom.min.js" ?>"></script>
        <link rel="stylesheet" href="<?=base_url()."css/ui/jquery-ui-1.8.23.custom.css$dev_date"?>"/>
        
        
        <script src="<?=base_url()."js/plugins/chromatable/jquery.chromatable.js$dev_date" ?>"></script>
        <script src="<?=base_url()."js/plugins/monthpicker/jquery.mtz.monthpicker.js$dev_date" ?>"></script>
        
        
        <script src="<?=base_url()."js/plugins/fancybox/jquery.fancybox.js" ?>"></script>
        <link rel="stylesheet" href="<?=base_url()."js/plugins/fancybox/jquery.fancybox.css"?>"/>
        
        <script src="<?=base_url()."js/plugins/checkbox/jquery.checkbox.min.js" ?>"></script>
        <link rel="stylesheet" href="<?=base_url()."js/plugins/checkbox/jquery.checkbox.css$dev_date"?>"/>
        
        <? foreach($css as $style):?>
            <link rel="stylesheet" href="<?=base_url()."css/$style"."$dev_date" ?>"/>
        <? endforeach;?>
            
        <? foreach($js as $script):?>
            <script src="<?=base_url()."js/$script".$dev_date ?>"></script>
        <? endforeach;?>
            
        <?if (isset($refresh)):?>
        <?if ($refresh):?>
        <script>location.reload();</script>
        <?endif;?>
        <?endif;?>
            
<script>
    function getBaseURL(){
        return "<?=base_url()?>";
    }
</script>
</head>
<body>